package cc.messcat.service.area;

import cc.messcat.common.model.Pager;
import cc.messcat.common.service.BaseService;
import cc.messcat.entity.area.Area;
import cc.messcat.entity.system.McUser;

import java.util.List;

public interface AreaService extends BaseService<Area> {

    List<Area> findAreasByParentId(Long parentId);

    Area getByAreaID(Long areaID);

    List retrieveAllarea(Long fatherId);

    void removearea(Long id);

    void addArea(Area area);

    void modifyArea(Area area);

    public List retrieveAreaById(Long id);

    public List retrieveAreaByIdfathid(Long id, Long fatherId);

    public Pager<Area> getPage(Long fatherId, int pageNo, int pageSize);

    public Pager<Area> retrieveAllvaguearea(Integer pageNo, Integer pageSize, Long fatherId, String area, String areaCode);

    List<Area> getAreaHasVillageInfo(Long fatherId);

    Area getAreaByName(String name);
    
    Area getAreaByName(String name,String village);

	Area getAreaByCode(String areaCode);

	List<Area> areaAuthorization(McUser user, Long fatherId);

	List<Area> getAllArea();

    List<Area> getALLVillage();
}
